package com.heima.model.comment.pojos;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("ap_user_comment")
public class ApUserComment implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键
    private ObjectId id;

    //用户id
    private Integer userId;

    //文章id
    private Long articleId;

    //评论内容
    private String content;

    //点赞数
    private Integer likes;

    //回复数
    private  Integer reply;

    //创建时间
    private Date createdTime;

}
